/* tech-courses.css — Styles for the rewritten Tech Courses section
   Namespaced to #courses-section / .courses-section to avoid collisions
*/

:root {
  --bg: #08080a;
  --muted: #bfc0c6;
  --accent1: #5ea2ff;
  --accent2: #b36bff;
  --divider-red: linear-gradient(
    to bottom,
    rgba(255, 90, 90, 0),
    rgba(255, 60, 60, 0.95),
    rgba(255, 90, 90, 0)
  );
  --max-width: 1200px;
}

/* Base resets */
.courses-section,
#courses-section {
  box-sizing: border-box;
  font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #fff;
}
.courses-section img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Section layout */
.courses-section {
  background: transparent;
  padding: 36px 20px;
}
.courses-header {
  max-width: 1100px;
  margin: 0 auto 18px;
  text-align: center;
}
.courses-title {
  font-size: 70px;
  margin: 0 0 8px;
  font-weight: 800;
}
.courses-gradient {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.courses-subtitle {
  max-width: 880px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
}

/* Wrapper and continuous divider (scoped) */
.courses-wrapper {
  max-width: var(--max-width);
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 42px;
  position: relative;
  padding: 0 120px;
}
.courses-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 24px);
  width: 3px;
  background: var(--divider-red);
  box-shadow: 0 0 18px rgba(255, 60, 60, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

/* Course block base */
.course-block {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 36px;
  align-items: center;
}
.course-right {
  grid-template-columns: 560px 1fr;
}

.course-info {
  padding: 6px 12px;
}
.course-tag {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22263a, #3b2a55);
  font-weight: 700;
  font-size: 25px;
}
.course-tag.course-tag-alt {
  background: linear-gradient(90deg, #40233d, #6f2b5f);
}
.course-heading {
  margin: 14px 0 8px;
  font-size: 20px;
}
.course-description {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 700px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.tag-blue {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #fff;
}
.tag-purple {
  background: linear-gradient(90deg, #4c2d6f, #8c3db2);
  color: #fff;
}
.tag-pink {
  background: linear-gradient(90deg, #9b2c89, #f43f5e);
  color: #fff;
}

/* Visual frame */
.course-visual {
  display: flex;
  justify-content: center;
}
.course-frame {
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.course-frame img {
  width: 520px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}
.course-frame.course-frame-alt img {
  width: 500px;
  height: 340px;
}

/* Alignment specifics: left blocks align text to flex-end */
.course-left .course-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 36px;
}
.course-left .course-tags {
  justify-content: flex-end;
}

/* Right blocks default left alignment */
.course-right .course-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-left: 36px;
}

/* Small spacing between blocks */
.course-block + .course-block {
  padding-top: 6px;
}

/* Utility */
.courses-hidden {
  display: none !important;
}

.course-btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 58px;
  background-color: white;
  color: black;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: 0.25s ease;
}

.course-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}


//TABLET CSS

/* Tablet CSS — tech-courses (600px - 1024px)
   Drop this into: /css/tablet css/tech-courses.css
*/

@media (min-width: 600px) and (max-width: 1024px) {

  /* Wrapper — RED LINE REMOVED */
  .courses-wrapper {
    padding: 0 40px;
    gap: 36px;
    max-width: 1000px;
    margin: 28px auto 0;
    position: relative;
  }

  /* REMOVE RED DIVIDER */
  .courses-wrapper::after {
    display: none !important;
  }

  /* Course block layout */
  .course-block {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 28px;
    align-items: center;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .course-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.48);
  }

  /* Right side reversed layout */
  .course-right {
    grid-template-columns: 440px 1fr;
  }

  /* Visual frame */
  .course-frame {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow: 0 16px 40px rgba(0,0,0,0.36);
    border: 1px solid rgba(255,255,255,0.03);
  }
  .course-frame img {
    width: 420px;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
  }
  .course-frame.course-frame-alt img {
    width: 400px;
    height: 300px;
  }

  /* Content */
  .course-info {
    padding: 6px 8px;
  }
  .course-tag {
    padding: 8px 18px;
    font-size: 13px;
  }
  .course-heading {
    font-size: 20px;
    margin: 8px 0 10px;
  }
  .course-description {
    font-size: 15px;
    max-width: 560px;
    line-height: 1.45;
  }

  .course-tags {
    gap: 10px;
  }
  .tag {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Alignment */
  .course-left .course-info {
    align-items: flex-end;
    text-align: right;
    padding-right: 18px;
  }
  .course-left .course-tags {
    justify-content: flex-end;
  }

  .course-right .course-info {
    align-items: flex-start;
    text-align: left;
    padding-left: 18px;
  }

  /* Explore More Button */
  .course-btn {
    margin-top: 18px;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg,#1d4ed8,#2563eb);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(37,99,235,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .course-btn .arrow {
    font-size: 16px;
    transition: transform .18s ease;
  }
  .course-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(37,99,235,0.14);
  }
  .course-btn:hover .arrow {
    transform: translateX(6px);
  }

  /* Spacing between courses */
  .course-block + .course-block {
    margin-top: 8px;
  }

  /* Larger tablets */
  @media (min-width: 900px) {
    .courses-wrapper {
      padding: 0 60px;
      max-width: 1100px;
    }
    .course-block {
      grid-template-columns: 1fr 480px;
      gap: 32px;
    }
    .course-frame img {
      width: 480px;
      height: 320px;
    }
    .course-frame.course-frame-alt img {
      width: 460px;
      height: 320px;
    }
  }
}
